mercredi 1 novembre 2017

Is it possible to run a browser in a browser?

Is it possible to make a browser within a browser? This could allow someone to run a 'portal' to the full internet from inside a controlled network at a school or office. If so, how could I go about making an online browser with little experience?




The exclude-mapping of interceptor is not working in spring mvc

I want to make an interceptor that will intercept every request except that related to login. The problem that I have is the interceptor still intercepts the requests that I provided with exclude-mapping. But the exclude-mapping can't working. Here is the configuration,spring 4.3:

<mvc:interceptors>
    <beans:bean class="com.knowledge.filter.GlobalInterceptor" />
    <mvc:interceptor>
        <mvc:mapping path="/back" />
        <mvc:exclude-mapping path="/back/login" />
        <beans:bean class="com.knowledge.filter.LoginInterceptor" />
    </mvc:interceptor>
</mvc:interceptors>

In my opinion, the "/back/login" should not be intercepted. Actually still get into the class of the interceptor.So, do i make some mistakes?




What is the best way to setup a database for a scalable web store?

I am seeking to setup a web store for now and scalable in the future. What would be the best way to do this that would allow me to have growth with the store and not have to redesign the database as traffic increases. Are there any suggested methods to follow while doing this for a custom website? Is MySQL a viable solution? Or should I use something else and why?




spider a github markdown website for broken links

for the few times I have done this wget worked fine, not on github: wget -r -nv --spider http://ift.tt/2gUy1AD -o log.txt

and a bit of grep

I am trying to do this on the http://ift.tt/2gUy1AD website to find and fix broken links

robots.txt: Allow: ///tree/master

and wget stops after reading robots.txt:

wget -r -nv --spider http://ift.tt/2gUy1AD 2017-11-02 10:30:37 URL:http://ift.tt/2gUy1AD [135752] -> "http://ift.tt/2ilJ9qL" [1] 2017-11-02 10:30:38 URL:http://ift.tt/1itr0Pr [30486] -> "http://ift.tt/1PSSaOY" [1] Found no broken links.

FINISHED --2017-11-02 10:30:38-- Total wall clock time: 2.5s Downloaded: 2 files, 24K in 0.4s (57.0 KB/s)

Any ideas? when I search for spider and github I get lots of projects and not much else




How could I create a commentary section on my webpage?

I need to create a project that simply shows a informative subject to the user, and have a commentary part at the bottom, but I really don't know yet how could I do this, even after days of search




Selenium Web Driver: NoSuchElementError

Salutations!

I'm building a web scraper using Selenium Web Driver and Excel VBA. For a specific website, I'm unable to find elements on the webpage, though I'm able to login to the website using the web driver.

Here's the website in question:

 WebsiteURL = "http://ift.tt/2huYIN6"

Here's the code in question:

 driver.FindElementByXPath("//*[@id='payerDropDown_chzn']").Click

I've tried using byname, byname & byclass but none of the methods are able to find the element. I also tested this on multiple elements on the page and it won't work.

If you have any advice on how to find the elements, please let me know.




Which browsers correctly implement 3rd party cookies blocking?

Recently it has come to my attention that blocking 3rd party cookies does not do what it says - it actually ALLOWS any domain to set cookies for any other domain.

So my question is, are there browsers which do implement this feature correctly, which means:

  • only allow domain 'A' to set cookies for domain 'A' and no other domain

  • when domain 'A' requests resource from domain 'B', no cookies are sent in such request

?