Adsense Bot looks for files for Adsense Matched content feature - adsense

Since i have implemented Matched content feature the Adsense bot (Mediapartners-Google) is looking for this tree files:
/google_matched_content_blacklist.txt
/google_matched_content_whitelist.txt
/google_matched_content_rules.xml
The file names sound like to control the Matched content feature,
but i can't find any description or documentation about this tree files.

Here is a sample of the /google_matched_content_rules.xml:
<rules>
<blacklist>
<uri>*.my-domain.com/exclude/*</uri>
</blacklist>
<whitelist>
<uri>*.my-domain.com/include/*</uri>
</whitelist>
<section>
<source>
<uri>*.my-domain.com/cat1/*</uri>
</source>
<target>
<uri>*.my-domain.com/cat2/*</uri>
</target>
</section>
</rules>
And the both files /google_matched_content_blacklist.txt and /google_matched_content_whitelist.txt are simple textfiles with a list of files or directories to exclude / include site in the related content.
! Keep Care: This is still not official documented !

Related

Why does my ClientLibrary css file keep including Bootstrap?

In CQ5, I've made a clientLibrary for one of my pages. Even when I remove all embed's and dependencies, the output .css file that gets loaded by my page has bootstrap at the top of the file. The client library itself just has a few js and css files that don't include or require bootstrap in any way. Am I missing something? Also I'm noticing the js file this clientLib outputs includes lot of scripts from my libraries that I'm not including in the clientLib or calling as a dependency/embed.
Below is my clientLibs .content.xml file.
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root
xmlns:cq="http://www.day.com/jcr/cq/1.0"
xmlns:jcr="http://www.jcp.org/jcr/1.0"
jcr:primaryType="cq:ClientLibraryFolder"
categories="[apps.myPage]" />
AEM saves the compiled clientlibs in a cache. Sometimes it happens the invalidation of the cache is not triggered. With using the following url you can execute the invalidation or the rebuild of your clientlibs:
/libs/granite/ui/content/dumplibs.rebuild.html
Is your problem not solved check the clientlib setup at the following page.
/libs/granite/ui/content/dumplibs.html
This page gives you insight about the embeds and dependencies on your clientlib. Probably a the reference still exists.
Everything configured well and it still doesnt work? In that case change the jcr:nodename of your clientlib folder. Check it once again.. Does it work, change back the name and it will work ;)

How To automatically update resourse link in eclipse when files moved to other location

I have imported website template in eclipse using file->import->General->Archive File..Template contains html files and also resource folder which contains CSS Javascript etc.I want to put html file in user folder and resource files in user_resource folder. But the problem i get is eclipse doesn't automatically update links in html file to the resource file.Do i manually update all the links in HTML file or is there any way like dreamweaver to update the links when file get moved to other location? For example i have link
<link href="user/assets/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
it should automatically update to
<link href="../user_resource/assets/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
when assets folder move to user_resource folder.
Any help would be appriciated
I have not used dreamweaver much. But I find these links may be useful to solve the problem if someone know how to use dreamweaver.
Try it out...
http://www.whoi.edu/services/stad/classes/DreamWeaver/movingfilesfolders.html
http://help.adobe.com/en_US/dreamweaver/cs/using/WScbb6b82af5544594822510a94ae8d65-7c3ea.html

How to merge two prototypes in Pencil Wireframing Tool?

I am using Pencil wire framing tool. I have distributed the modules with my developers and now I want to merge all of them in a single solution. Instead of copy pasting page by page I think there can be a better way of doing this.
Also I wanted to know, is it possible of converting the one source file of prototype into another as I think collaboration feature in Pencil is missing.
Please assist.
Thank you
Open .ep files in your favorite editor. You will see an XML structure like
<?xml version="1.0"?>
<Document xmlns="http://www.evolus.vn/Namespace/Pencil">
<Properties/>
<Pages>
<page>...</page>
<page>...</page>
.....
.....
</Pages>
</Document>
Now just copy paste second .ep files all <page> at end of first .ep (Just before </pages>

Multiple Web.config files in Area using ASP.NET MVC2

I have a question on something that I thought would be a simple. I have an Area in my website and I'd like to create a Web.config file specific to this area but, no matter where I put this config file, the keys that I've set up in my appSettings are all returning "null" when I access them, so I'm not sure what I'm supposed to do. Here's my website structure:
Site
[usual site stuff like Views, Models, Controllers]
Web.config
Areas
MyArea
Web.config
[usual site stuff like Views, Models, Controllers]
my web.config on the main site looks something like...
<?xml version="1.0"?>
<configuration>
<appSettings>
<add key="MyMainKey" value="MyTestValue"/>
</appSettings>
<!--all of the standard asp.net mvc config stuff -->
</configuration>
My areas config looks something like
<?xml version="1.0"?>
<configuration>
<appSettings>
<add key="MyAreaConfigValue" value="MyAreaTestValue"/>
</appSettings>
<!--all of the standard asp.net mvc config stuff -->
</configuration>
In a controller action that exists in my Areas/MyArea/Controllers folder I'm trying to access it like so:
string my_area_config_val = System.Configuration.ConfigurationManager.AppSettings["MyAreaTestValue"];
But my_area_config_val is null.
In a controller action in my main site (not in my Area) I can do
string my_main_config_val = System.Configuration.ConfigurationManager.AppSettings["MyTestValue"];
and my_main_config_val is equal to "MyTestVal", as expected.
Thanks.
Mustafa
The Web.config file goes in the Area/Views dir. I have not found any concrete facts, but from what I have seen in doing some research is that the <appSettings> from Web.config files within Areas will never get used. Below is one site that has a brief statement on it:
AREAS in ASP.NET MVC 2.0

Is it possible to redirect a link that ends with .aspx to a .ashx?

We have a website that we recently released based mostly on SharePoint. Some of the site needed to return just straight XML. The consultants on the project implemented the xml returns as .aspx pages that write the response object in the page_load method.
After a short time researching this, I relize that this is probably the wrong way to do this because it calls all the extra events for a ASPX page that we don't need.
Here's my question, I want to recreate these functions as .ashx links with the httphandler. However, I want to be able to retain the orginal links that ended in .aspx and the get parameters that accompany them to decide which type of XML to return.
Is is possible to rewrite/redirect the .aspx ending links to a .ashx link. Or would that cause the IIS server to interpret every .aspx incorrectly?
I think you're probably in luck...
We did a similar thing. Our eCommerce web app only accepts JPG, PNG and GIF files as the images for products, but we wanted every image to be dynamically created for every product.
So, we remapped JPG, PNG and GIF files to become a handler.
However, we didn't want ALL JPG, PNG and GIF files to be mapped since it would be hugely inefficient for static files, so we only did certain ones.
Here is how to do it.
If all of your ASPX files follow a similar file-spec that NO other files share, add this to your web.config under <httpHandlers>.
<add path="filespec*.aspx" verb="*" type="MyAssembly.MyHandlerName, MyAssembly"/>
If they don't all share a file-spec, you'll have to add them one-by-one to web.config:
<add path="oldaspx1.aspx" verb="*" type="MyAssembly.MyHandlerName, MyAssembly"/>
<add path="oldaspx2*.aspx" verb="*" type="MyAssembly.MyHandlerName, MyAssembly"/>
<add path="oldaspx3*.aspx" verb="*" type="MyAssembly.MyHandlerName, MyAssembly"/>
To make this usuable whether or not you are running in the IIS7 integrated pipeline, you could also add similar lines to the <handlers> element
Then when a request comes in for 'oldaspx1.aspx', it will get handled (very efficiently, without the page lifecycle being started) by your custom handler.
If this solves your problem, please mark it as the accepted answer with the check mark to the left.