browser

How to fix the Zoom problems in Google Chrome and Firefox?

耗尽温柔 提交于 2019-12-18 17:02:19
问题 Latest updates of Firefox and Google Chrome affects their Default Zoom scaling. It affects Fonts size, Image size and also entire Browser. Here is your Answers...... For Firefox : open up a new tab, and type about:config into the address bar, and press enter. Then use the search box, enter the word "pixel" then it will show "layout.css.devPixelsPerPx" . change the value -1.0 to 1 for 100% perfect scale... For Chrome: Right Click the chrome icon or chrome shortcut icon, go to the properties.

How to set default browser in windows 8 using C#?

只谈情不闲聊 提交于 2019-12-18 16:53:15
问题 We all have been easily able to do this prior to Windows 8 (in XP/VISTA/WIN7) with few changes in Registry and it was done. With Windows 8 it's not that easy (I'm yet to figure it out how). Windows 8 too has few registry settings to be changed mentioned below, but along with this it also stores a unique Hash for every computer. Can any body help me to possibly create this hash for every computer or with some API provided by Microsoft to set default browser ('SetAppAsDefaultAll' does not work)

Why does GWT ignore browser locale?

拈花ヽ惹草 提交于 2019-12-18 16:51:25
问题 GWT gets locale from either the locale property or the locale query string. If neither is specified, it uses the "default" (ie en_US ) locale. Why doesn't it get it from the browser settings? It seems the only solution to this is to replace your static html launch page with something like a JSP that reads the browser locales and sets the locale or redirects using the query string. There has to be a better solution than this or simply hard-coding a locale, surely? 回答1: You can also put this

Can anyone suggest how to record audio from microphone on a website using html5 and javascript

北战南征 提交于 2019-12-18 16:10:33
问题 I want to record audio using javascript and html5, there is device element in html5 but i dont know to use it. Found no examples for the same. 回答1: No current stable browser supports the Stream API (formally known as <device> ), so in practical terms — you can't. The lack of examples using it is a consequence of this. If you want to play with it, you have to use development branches of Chrome. There is a demo of voice input here. 回答2: currently, there are three ways to do it as wav all code

Is the Android Browser capable of performing an xsl transform?

蓝咒 提交于 2019-12-18 15:04:11
问题 I have an xml file I wish to transform using an xsl-document, but I can't seem to make it work on even the latest available Android versions. I tried adding a <?xml-stylesheet/> tag to the xml, but that didn't work in either the native browser or in Dolphin Browser. E.g: <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="style.xsl"?> <xmldata>Hello world</xmldata> and <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl=

How can I send data/text from PHP using WebSocket to process?

徘徊边缘 提交于 2019-12-18 13:35:38
问题 I have process on server which acts as WebSocket server (not written in Ratchet). I want to be able to send data to this process using PHP (as client). I found a lot of examples to send as TCP like this: <?php $addr = gethostbyname("localhost"); $client = stream_socket_client("tcp://$addr:8887", $errno, $errorMessage); if ($client === false) { throw new UnexpectedValueException("Failed to connect: $errorMessage"); } fwrite($client, "GET / HTTP/1.0\r\nHost: localhost\r\nAccept: */*\r\n\r\n");

if basic, sample GWT app takes 30sec to load in browser, is that normal? will real apps take 2 mins?

别来无恙 提交于 2019-12-18 13:32:07
问题 I have a decent machine capable of running 64 bit Windows 7. So how come any time I stop a small sample GWT app in "development mode", edit it and restart it it takes 30 sec to become responsive in the browser, both in latest Firefox and latest Chrome? Is that sort of molasses-based edit-compile cycle just the normal, expected thing for GWT developers nowadays? Will it get much worse for more realistic apps or is the whole of those 30 sec just the framework overhead, and my own code would not

Browser does not remember position of page last viewed

て烟熏妆下的殇ゞ 提交于 2019-12-18 13:31:46
问题 I have done a few searches for this issue and I have come up empty handed. I hope somebody can clarify things for me and point me in the right direction. Problem: I have a page that displays a list of results after submitting a search form. When a user clicks on one of the results, the browser goes to a new page showing more information about the result. When the user then clicks the 'back' button to go pack to the results, my browser reloads the page and shows the top of the page instead of

Make .NET WebBrowser not to share cookies with IE or other Instances

前提是你 提交于 2019-12-18 13:31:44
问题 Since WebBrowser in C# shares cookies with all other instances of WebBrowsers including IE I would like for a WebBrowser to have it's own cookie container that doesn't share any cookies that was created previously in IE or other instances. So for example when I create a WebBrowser it shouldn't have any cookies. And when I run 2 instances of WebBrowsers they have their own cookie container and don't share or conflict cookies with each other. How can I achieve this ? 回答1: You could do this per

Listening browser reflow event

柔情痞子 提交于 2019-12-18 13:12:59
问题 I'm trying to listen browsers reflow-events to get an idea what parts of a code are the most expensive ones. Reflow occurs when something must be (re)drawn to screen, for example when new element is added to DOM. Is there a way to listen thease events for example in/with Javascript, for further analysis? 回答1: I think the solution it's to use the DOM MutationObserver class. As the Docs point out: It is designed as a replacement for Mutation Events defined in the DOM3 Events specification. Api