Will dynamic compression work without explicitly checking the checkbox for dynamic compression using IIS 7.5? - asp.net-mvc-2

I have not installed the Performance features (Dynamic Content Compression) using the Turn Windows features on or Off dialog box for enabling dynamic compression and also not enabled the checkbox "Enable dynamic content compression" using the IIS 7.5 but in the web.config file I have mentioned the following code :
<!-- Compression Settings-->
<urlCompression doDynamicCompression="true" doStaticCompression="true" dynamicCompressionBeforeCache="true"/>
My question is will the dynamic compression come into play here with the above settings?
Thanks & Regards,
Santosh Kumar Patro

Without checking the checkbox, dynamics compression will not work.
It can as well be that it's not even installed as feature on the server.

Related

Sling Merger Comments

i'm curious about html comments in a page source, i can find such html comments on all pages system, or wich were created by ourselves. I guess that it comment't for sling merger or so on.
We use AEM 6.2.0 with acs commons 3.3.0, i guess it for dev's mode of something else, but i can't find how to turn it of.
I think that it's the WCM Developer Mode Filter. Try disabling it from the OSGi console and see if the output disappears.
I believe you have enabled the xray mode of TouchUI as per the document at:
https://helpx.adobe.com/experience-manager/kb/troubleshooting-aem-touchui-issues.html
You can disable this feature by deleting the node at: /etc/xraymode/enable

How do I modify the Sakai installation's AntiSamy policy files?

I would like to modify a deployed installation of Sakai to allow iframes from several on-campus media servers. An example of an iframe is https://mediaserver.example.edu/p/player.html. What is the easiest way to edit the policy files in the deployed Tomcat?
Antisamy is an open source API and html scanner and cleaner. Sakai 2.9 or higher uses this as a part of it's security suite to protect users from XSS (Cross Site Scripting) attacks caused by malicious user created markup.
Sakai includes a default set of configurations which are community tested and will likely meet most users needs. These include a low and high security option (high is the default). To force Sakai to use the low security setting you can add a Sakai configuration property as shown below (setting this to false will default to high security):
content.cleaner.default.low.security=true
The primary difference between the high and low settings is the blocking of unknown sites for external content (like vidoes or iframes). High only allows a limited list of trusted sites. Low allows content from any site. Both have extensive rules for protecting against javascript related injection attacks.
The Antisamy configuration files are XML based (see the Antisamy developer guide for more details). The standard high and low security files are located in the Sakai source code under "kernel/sakai-kernel-impl/src/main/resources/antisamy/". These can be used as a basis for a locally customized version. To override the included files, simple place a custom version in the Sakai home directory (typically TOMCAT_HOME/sakai), for example:
${sakai.home}/antisamy/high-security-policy.xml
${sakai.home}/antisamy/low-security-policy.xml
For your specific use case, you would probably modify the following section (near the top of the xml file) as indicated in the comment:
<!-- SAKAI customized trusted sites listing:
This is where we specify what Flash/embed/iframe src to allow
To add a new host/site to this list:
Find this in the flashSites below: ...(download\.macromedia\.com/pub|...
Add in your site (e.g. "new.site.host.com/path": with escaped ".": "new\.site\.host\.com/path|"
Like shown here: (new\.site\.host\.com/path|download\.macromedia\.com/pub|
-->
<regexp name="flashSites" ...

Java text field history in applet

I have a simple Java applet with several text fields for input.
I would like to be able to somehow cache what the user enters into these fields so that next time they run the applet, they can make a selection from a list of previous inputs.
I have been searching forums and sites and cannot find any way to do this for applets.
Does anyone have a suggestion or a kick in the right direction?
If you're running this in a browser, you could try using cookies.
As well as cookies, here are a few more possibilities.
HTML5 offers Web Storage which can be accessed from the applet using JS.
An applet running in a Plug-In 2 JRE can be deployed using JWS and use the PersistenceService to store data. Here is a demo. of the PersistenceService.
A trusted applet can read/write the local file-system, but probably overkill for this.

how to add ability to upload multiple images for a product in zen cart?

How can I add the ability of uploading multiple images for a product from the admin side.
I have search for it and found that upload an image from the admin side and then for adding additional images you should upload it through ftp.
But I did not want this. I want that admin should be able to upload multiple images from the admin panel for a single product.
How will I do this?
Which version of Zen Cart are you using? If you're using 1.3.x then you should install Image Handler (found in the official Free Add Ons section). Unfortunately, IH is currently not compatible with 1.5.0 admin section (although the frontend functionality will work). From what I know, there's currently nothing you can do with 1.5.0 except code the funcionality yourself.
There is now an updated Image Handler available for v1.5.0. http://www.zen-cart.com/plugins
There are other addons such as "Image Manager" which allow for additional admin-side image management.

Email Editor Similar to Campaign Monitor or Mailchimp's editor?

I looking for either an open source (or otherwise) php script/library/code that will provide me with a similar email composer that Mailchimp and Campaign Monitor have.
I've played around with lots of wysiwyg editors (eg: tinymce, ckeditor) but, they don't work very well for allowing users to compose emails.
Mosaico Editor is the first open source email template builder of this kind (AFAIK).
You can find a free to use deployment (working also as live demo) at http://mosaico.io and you can get sources at https://github.com/voidlabs/mosaico
I choose blocks from a set defined by the "master template", then you fill you contents and change their styles in a WYSIWYG style. If you're on a large window you can also have live preview for the mobile version.
The master template defines what are the blocks, what you can edit and what you can style and it contains any html trick to make it compatible with most clients: this means you can change the editor behaviour a lot by simply writing a new master template.
It is 99% javascript (IE10+, and any other modern browser) and depends on server-side functions only to do "final inlining" and "image upload/resizing"
Next generation tool for building templates without coding
Grapejs official site
GrapesJS is an open-source, multi-purpose, Web Builder Framework which combines different tools and features with the goal to help you (or users of your application) to build HTML templates without any knowledge of coding. It's a perfect solution to replace the common WYSIWYG editors, which are good for content editing but inappropriate for creating HTML structures. You can see it in action with the official demos, but using its API you're able to build your own editors.
I'm in the process of building one but as a designer it is a work in progress! I'd suggest looking at PHP template engines. They have a similar functionality. Most however will use php variables inside the html page instead of tags.
Another oprion is to check out Perch it is officially a CMS, but is really lightweight and might get the job done for you.
Hope that helps even though it is a year after you posted the question...
EDIT: Actually just stumbled across this thread which links to the new CKEditor - looks pretty cool.