mozilla

What's a good embedded browser for a pygtk application?

本小妞迷上赌 提交于 2019-12-04 11:05:30
I'm planning on using an embedded browser in my pygtk application and I'm debating between gtkmozembed and pywebkitgtk. Is there any compelling difference between the two? Are there any third options that I don't know about? It should be noted that I won't be using this to access content on the web. I'm mainly using it for UI purposes. My priorities are: It needs to be stable. It needs to be cross-platform. It should be easy to use. It should be actively maintained. It should be extensible. It should be fast. gtkmozembed is not available on Windows, although you can use the gecko embedding

Is it possible to use Mozilla Persona (BrowserID) with mobile apps?

纵然是瞬间 提交于 2019-12-04 08:25:21
问题 Is it possible to easily use Mozilla Persona (Browser ID) for native iOS and Android apps? Or is it just too much of a hassle getting the information out of the web view ? 回答1: For iOS I just found this: https://github.com/mozilla/browserid-ios - however I haven't tested it, yet. Also, I didn't see a similar project for Android, yet. 回答2: Check out android-browserid CouchChatAndroid is an open source project which uses Persona for authentication. 来源: https://stackoverflow.com/questions

Range object: differences between Webkit and Mozilla based browsers

匆匆过客 提交于 2019-12-04 06:24:22
at the moment I have some troubles writing an abstraction layer for Mozilla and Webkit based browsers for using the DOM-range object (getting and processing user selections). I have also tried to have a look at frameworks like Rangy but this seems far to complex for my task (I have no idea where exactly in the code to find the information I need. If someone could give me a hint, I would be grateful!). What I want is simply this: get back the reference to the text node the selection starts in and its offset get back the reference to the text node the selection ends in and its offset So far my

避免网络爬虫IP被封的策略

ε祈祈猫儿з 提交于 2019-12-04 04:36:58
背景 这两天一直在搞Java网络爬虫作为Java课程设计,目标是爬取豆瓣电影top250的影评,之后可能还需要进行情感分析,当然这就不是爬虫的内容了。我的爬虫程序在一开始只是一个页面一个页面的爬取信息,一直没出现什么太大问题,直到昨晚进行整体测试时,出现了IP被封的问题。大概仅仅爬取了数万条评论,再次进行测试后就出现了进程异常报错。上网搜索发现可能是IP被封了,这时候再进入豆瓣网站提示我需要登录才能访问,这说明确实是被封了。 今天也再次出现这个问题,被封了三个IP,幸好实验室的IP多,但也不能任由我挥霍,经过今天一天与豆瓣的斗智斗勇,这里给出一些避免IP被封的策略。 主要参考自 https://www.cnblogs.com/mooba/p/6484340.html user_agent 伪装和轮换 不同浏览器的不同版本都有不同的user_agent,是浏览器类型的详细信息,也是浏览器提交Http请求的重要头部信息。我们可以在每次请求的时候提供不同的user_agent,绕过网站检测客户端的反爬虫机制。比如说,可以把很多的user_agent放在一个列表中,每次随机选一个用于提交访问请求。 这里给出一些user_agent Opera Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)

Unexpected token in CSS when editing it in vnext

淺唱寂寞╮ 提交于 2019-12-04 00:29:37
When I try to write some css through Vnext or Webmatrix v2 beta I got error that unxpected token : sometime I change something and got error that unexpected error ; When I try this body { background-color :Aqua; } I wonder all browser (moz,chrome) give me error that "Uncaught SyntaxError: Unexpected token :" Later I save it from vs2010 but i still have error. Can someone tell me where I am doing wrong. The error suggests that you're trying to load your CSS as if it were Javascript. Maybe Vnext is expecting the : to be beside the background-color ? Try this background-color: Aqua 来源: https:/

Is it possible to trigger mouse middle click event using Javascript?

混江龙づ霸主 提交于 2019-12-03 15:24:47
I want to trigger mouse middle click event using javascript. Is it possible to trigger mouse middle click using Javascript? I want it because it is pasting last selected object from clipboard. Thanks, Jimit Had the same question, did a lot of digging, and this is what I ended up using: if ( window.CustomEvent ) { var middleClick = new MouseEvent( "click", { "button": 1, "which": 1 }); jQuery(".selector")[0].dispatchEvent( middleClick ); } You can use event.button to identify which mouse button was clicked. Returns an integer value indicating the button that changed state. * 0 for standard

Open eclipse juno with error “No more handles …” in Ubuntu 12.04

坚强是说给别人听的谎言 提交于 2019-12-03 11:36:45
Starting today, every time I open up the eclipse, I got a message box with title "Problem Occured" pops up saying: No more handles [Unknown Mozilla path (MOZILLA_FIVE_HOME not set)] possible args: {0}, {1}, {2}, {3} No more handles [Unknown Mozilla path (MOZILLA_FIVE_HOME not set)] Then I click "OK" and proceed to the workbench, I got another error saying An SWT error has occurred. You are recommended to exit the workbench. Subsequent errors may happen and exit the workbench without warning. See the .log file for more details. Do you want to exit the workbench? (Yes / No) Then I clicked "Yes"

随机设置爬虫头部headers 信息

拈花ヽ惹草 提交于 2019-12-03 11:06:05
1 user_agent = [ 2 "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_8; en-us) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari/534.50", 3 "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-us) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari/534.50", 4 "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0", 5 "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; InfoPath.3; rv:11.0) like Gecko", 6 "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)", 7 "Mozilla/4.0

Page load time in Google Chrome or Mozilla Firefox

允我心安 提交于 2019-12-03 10:33:21
Is there a way to check how long does it take for the page to load? EDIT: I will extend the question a bit. Say you are working on a ASP.NET project and when you run your project within the Visual Studio there is some loading time before you can see your starting page rendered on the screen and ready to use. If this website was live the load time should be different from the load time when starting your project from Visual Studio. What I would like to see is what would be the actual load time if the web site was on a server. EDIT 2: Answer Chrome -> Right Click -> Inspect Element -> Network

Integrate GeckoView in Android

匿名 (未验证) 提交于 2019-12-03 08:56:10
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm facing problem in file upload in webview in Kitkat(4.4). As per https://code.google.com/p/android/issues/detail?id=62220 it can't be done in 4.4 due to missing method in new version of webview. Hence searched and found GeckoView( https://wiki.mozilla.org/Mobile/GeckoView ) as alternative for webview. I followed all steps specified at https://wiki.mozilla.org/Mobile/GeckoView , still project is not running in emulator as well as android device. I tried downloading and importing sample project Geckobrowser in https://wiki.mozilla.org