chromium

WebUSB and RFID readers

与世无争的帅哥 提交于 2019-12-21 17:04:07
问题 I was wondering if anyone had any experience getting RFID readers to work through WebUSB. The reader I'm using is the https://www.parallax.com/product/28340 . From what I've read, I'd have to write a driver to read from the device. I was just wondering if anyone has done any work regarding this and what they ended up doing. The goal here is to read RFID tags without using another application to feed it to the web application. Thanks! 回答1: The USB variant of that RFID reader uses an FTDI

How to get the source code of Chromium for Android

两盒软妹~` 提交于 2019-12-21 05:06:45
问题 I'm trying to build Chromium open source browser for Android. I have referred: Visit: http://code.google.com/p/chromium/wiki/AndroidBuildInstructions But, I think it will only build the test bundles not the full browser. Any idea how can I have it running on my device for making some changes to it through source code. I checked out the code from Git as recommended and build it accordingly using depot_tools and targeting OS as android. All the build environment is correct and I can make "make

Chrome use-mobile-user-agent not working

三世轮回 提交于 2019-12-21 04:54:10
问题 Chrome use-mobile-user-agent not working Running chrome from command line with flag --use-mobile-user-agent does not open the browser in mobile context (user-agent). chrome --use-mobile-user-agent= true Note: passing user-agent option does work, but i feel its not the right way of doing things as chrome offers you this flag to boot in mobile context. --user-agent= Mozilla/5.0 (iPhone; U; CPU iPhone OS 5_1_1 like Mac OS X; ar) AppleWebKit/534.46.0 (KHTML, like Gecko) CriOS/19.0.1084.60 Mobile

Caused by android.content.res.Resources$NotFoundException String resource ID #0x2040003

本小妞迷上赌 提交于 2019-12-20 23:56:14
问题原因: 升级支持androidx后,使用webview在部分机型会出现Crash「vivo x7 Android5.1.1」,定位使用androidx.appcompat:appcompat:1.1.0 版本导致。 解决方案: 使用androidx.appcompat:appcompat:1.0.2版本 错误日志: Webview :Caused by android.content.res.Resources$NotFoundException String resource ID #0x2040003 android.content.res.Resources.getText + 318 (Resources.java:318) android.content.res.VivoResources.getText + 123 (VivoResources.java:123) android.content.res.Resources.getString + 404 (Resources.java:404) com.android.org.chromium.content.browser.ContentViewCore.setContainerView + 694 (ContentViewCore.java:694) com.android.org.chromium

Breakpoint debugging minfied/mangled/compiled variables

此生再无相见时 提交于 2019-12-20 08:46:44
问题 Working on building JavaScript sourcemaps into my workflow and I've been looking for some documentation on a particular part of debugging source maps. In the picture below I'm running compressed Javascript code, but through the magic of source maps Chrome debugger was able to reconstruct the seemingly uncompressed code for me to debug: However, if you look at the local variables, someNumber and someOtherNumber are not defined. Instead, we have a and r , which are the compiled variable names

puppeteer stream playing <video> to node.js buffer

守給你的承諾、 提交于 2019-12-20 05:53:17
问题 using Puppeteer I'm able to navigate to a certain video src URL, and the MP4 (using a custom build of chronium) plays fine. NOW: I want to be able to get the video data that's playing and send it to some kind of buffer in node.js that can be saved as a file or sent to a client via a websocket or sent as a response etc.... but I'm not sure how to do it, all I have is the video playing. I'm not able to just send the URL over to node.js, because in order to view the video file you have to go

Chromium - How to make an actual installer out of mini_installer.exe

走远了吗. 提交于 2019-12-20 03:56:10
问题 After building chromium from source, you can create a "mini installer" for Windows by running ninja -C out\BuildFolder mini_installer This works fine and creates a mini_installer.exe in out\BuildFolder . But when I launch mini_installer.exe it just launches chromium. It doesn't open a nice installer interface. So instead I am using InnoSetup to install the chromium files, and I'm not even using mini_installer.exe . Can someone please describe what this "mini_installer" is supposed to

ERR_INCOMPLETE_CHUNKED_ENCODING on a fresh Laravel install

冷暖自知 提交于 2019-12-19 10:04:32
问题 This only happens on Google Chrome and Chromium with a fresh install of Laravel. The page shows blank and in the console it says: (failed) net::ERR_INCOMPLETE_CHUNKED_ENCODING Instead of the default hello view that which says “You have arrived.” My server is Debian Wheezy with ISPConfig, Apache 2.2 and PHP 5.4 Does anybody knows how can I fix this? 回答1: Had the same problem on a Ubuntu 14.04 Vagrant box running nginx. The site is a Laravel 5 that one day surprisingly started throwing those

Font awesome showing asian signs instead of icons

北城余情 提交于 2019-12-19 03:23:45
问题 i'm trying to use Font Awesome but instead of any icons it just displays any asian signs. I downloaded font awsome to by webserver for that. I tried this in 3 different browsers (firefox, opera and chromium) but it is always the same. A testpage can be seen here: http://2weitweitweg.de/test.html And here is a screenshot of it: http://postimg.org/image/9yh5p0p97/ Does it show the signs in your browser? Is the problem browser- or server-related? How can i fix it? bye 回答1: I had this problem and

overwrite a file with HTML5 FileWriter

跟風遠走 提交于 2019-12-18 14:56:05
问题 I'm using HTML5 FileWriter API to save the state of my webapp. I have bit of JS that periodically calls FileWriter.write to do that (so , over time, the write method is called several times). By default FileWriter API use an 'append' approach to writing files which does not suits my needs since I wan't to overwrite the file content. I first tried this: this._writer.seek(0); this._writer.write(content); This is not working when you are writing a text shorter than the file content. I then tried